package com.xiaojie.io;

import java.io.InputStream;

/**
 * @ClassName Resources
 * @Author jiege
 * @Date 2021/5/2 19:49
 **/
public class Resources {

    //根据配置文件的路径，将配置文件加载成字节输入流，存储在内存中
    public static InputStream getResourcesAsSteam(String path){
        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;
    }
}
